package net.zjitc.arrays.link;

public class DNode<T> {
    T data;
    DNode prev;
    DNode next;

    public DNode(T data) {
        this.data = data;
    }

    public DNode(DNode prev, DNode next) {
        this.prev = prev;
        this.next = next;
    }

    public DNode( DNode prev,T data) {
        this.data = data;
        this.prev = prev;
    }

    public DNode( DNode prev,T data, DNode next) {
        this.data = data;
        this.prev = prev;
        this.next = next;
    }
}
